package com.sjksy.demo.vo.ledger;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "上一个月分公司收入统计")
public class LedgerBranchStatisticVo {

    @Schema(description = "分公司ID", example = "1")
    private Integer branchId; // 对应 b.branch_id

    @Schema(description = "分公司名字", example = "北京分公司")
    private String branchName; // 对应 b.branch_name

    @Schema(description = "分公司位置", example = "北京市朝阳区")
    private String branchPosition; // 对应 b.branch_position

    @Schema(description = "订单数量", example = "120")
    private Long orderCount; // 对应 COUNT(l.ledger_id) as order_count

    @Schema(description = "总销售额", example = "12345.67")
    private BigDecimal totalSales; // 对应 SUM(tc.money) as total_sales

}
